<?php
    if ( (isset($_GET['fromDate'])) and (isset($_GET['toDate'])) and (isset($_GET['queue'])) and (isset($_GET['agent'])) )
    {
	$from=htmlspecialchars($_GET['fromDate']);
	$to=htmlspecialchars($_GET['toDate']);
	$queuePOST=htmlspecialchars($_GET['queue']);
	$agent=htmlspecialchars($_GET['agent']);
	require "views/history.phtml";
    }
    else
    {
	echo("Error!");
    };
?>